//
//  CarprogMode.m
//  CarTown
//
//  Created by xionghao on 15/8/21.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "CarprogMode.h"
#import "CarprogChildmode.h"
@implementation CarprogMode
+(instancetype)carporgWithDict:(NSDictionary *)dict{
    CarprogMode *mode=[[CarprogMode alloc]init];
    [mode setValuesForKeysWithDictionary:dict];
    NSMutableArray *marray=[NSMutableArray array];
    for (NSDictionary *childdict in mode.children) {
        CarprogChildmode *carprogchilde=[CarprogChildmode childWithDict:childdict];
        [marray addObject:carprogchilde];
    }
    mode.children=marray;
    return mode;
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end
